<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

<script type="text/javascript">
    function submitForm() {
        document.getElementById("dbselectform").submit();
    }
</script>


    <div id="left" class="cleft">
        <div class="cmb">
            <a href="<c:url value="/user/welcome.do"/>">Home</a>
            <a href="<c:url value="/common/logout.do"/>">Logout</a>
        </div>

        <form action="<c:url value="/user/tablelist.do"/>" method="post" id="dbselectform" class="cdbselectform">
            <label class="description">Seleziona Database</label>
            <div class="selectdb">
                <select class="styleselect" name="schema" id="schema" onchange="submitForm();">
                    <option value="0">Scegli il db...</option>
                    <logic:iterate name="schemas" id="item">
                        <option value="<bean:write name='item' />"><bean:write name='item' /></option>
                    </logic:iterate>
                </select>
            </div>
        </form>
    </div>